package com.zjh.admin.sys.service;

import com.zjh.admin.sys.model.UserEntity;
import com.zjh.core.base.baseservice.BaseService;
import com.zjh.core.exception.ServiceException;

/**
 * @author ZWX
 * @Description: 用户service
 * @date 2018/11/12 17:44
 */
public interface UserService extends BaseService<UserEntity, Long> {

    /**
     * 只修改用户信息
     *
     * @param userEntity
     * @return
     * @throws ServiceException
     */
    int updateOnly(UserEntity userEntity) throws ServiceException;

    /**
     * 修改密码
     *
     * @param userEntity
     * @return
     * @throws ServiceException
     */
    int updatePassword(UserEntity userEntity) throws ServiceException;

}
